package com.homework.demo1;

public class test {
    public static void main(String[] args) {
        Student student = new Student("张三");
        try {
            student.printName("欢迎你");
            student.printName(123);
        } catch (com.homework.demo1.MustStringArgumentException e) {
            e.printStackTrace();
        }

        Student student2 = new Student("张三");
        try {
            student2.printName("欢迎你");
            student2.printName(123);
        } catch (MustStringArgumentException2 | com.homework.demo1.MustStringArgumentException e) {
            e.printStackTrace();
        }
    }
}
